<?php
ini_set('display_errors', 0);
  session_start();  
$_SESSION['usuarios'];
$_SESSION['passwords'];

if ($_SESSION['usuarios'] == "" and $_SESSION['passwords'] == ""){
	echo " uste no tiene permiso pa ver esta pagina";
	die;
}
$usuarios6 = $_SESSION['usuarios'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title> Sistema Integral de Bienestar Social</title>
<link href="media/styles00.css" rel="stylesheet" type="text/css" />
<link href="media/nivo-sli.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="media/jquery-1.js"></script>
<script type="text/javascript" src="media/jquery00.js"></script>
<script src="media/cufon-yu.js" type="text/javascript"></script>
<script src="media/Sunshine.js" type="text/javascript"></script>
<script type="text/javascript">
Cufon.replace('h1');
Cufon.replace('h3');
Cufon.replace('.special_font');
Cufon.replace('h2 a', {
	hover: true
});
Cufon.replace('h2');
Cufon.replace('#navigation a', {
	hover: true
});
</script>
<script type="text/javascript" src="media/jquery01.js"></script>
<script type="text/javascript">
$(window).load(function() {
$('#slider').nivoSlider();
});
</script>

<link rel="stylesheet" href="media/jquery00.css" type="text/css" />
<script type="text/javascript" src="media/jquery02.js"></script>
<script type="text/javascript">
$(function() { $('.lightbox').lightBox(); });
</script>
</head>
<body>
<div id="bg_top">
  <div id="wrapper">
    <div id="header">
      <div id="logo"><img src="media/logo0000.png" width="289" height="54" alt="Logo" /></div>
      <div id="cloud1" class="special_font"><!-- texto aqui --><br /> <!-- texto aqui-->  </div>
      <div id="cloud2" class="special_font"> <!-- Numero de extension --> </div>
      <div id="menu">
        <ul id="navigation">
          <a  style="border:none;"> Sistema Integral de Bienestar Social</a>
        </ul>
      </div>
    </div>
    <div id="content_bg">
      <div id="content">
        
          <!--script type="text/javascript">
			 //<![CDATA[
			function loadmap() {
			 if (GBrowserIsCompatible()) {
			  var map = new GMap2(document.getElementById("googlemap"));
			  var geocoder = new GClientGeocoder();
			  map.setCenter(new GLatLng(57.4419, 74.1419), 13);
			  map.addControl(new GSmallMapControl());
			  //change the address below to the one you want the marker to point to
			  var address = "gold coast, qld, australia";
			  geocoder.getLatLng(
			      address,
			      function(point) {
			       if (!point) {
			         alert(address + " not found");
			       } else {
			         map.setCenter(point, 15);
			         var marker = new GMarker(point);
			         map.addOverlay(marker);
					  // change the address below to the one you want displayed in the popup
			         marker.openInfoWindowHtml(
			            "<strong>Company:</strong><br>Shop 5, 55 Retail Way,"+
			            " <br>Suburb 4444.");
			       }
			     }
			  );
			 }
			}
			window.onload=loadmap;
			//]]>
			</script-->
			
<script language="JavaScript" src="gen_validatorv4.js"
type="text/javascript" xml:space="preserve"></script>
<SCRIPT language=Javascript>
	function isNumberKey(evt) {
		var charCode = (evt.which) ? evt.which : event.keyCode
		if (charCode > 31 && (charCode < 48 || charCode > 57))
			return false;
		return true;
	}
</SCRIPT>




		<table align="center" width="260px" height="150px">
		<td  align="center" width="250px">
          <h1>Registros de Guarderia</h1>
          
          
          <br /> <br />
         <form name= "registro_guarderia" id= "registro_guarderia" method= "post" action= "registros_guarderia.php">
			<table width= "600" align= "center">
				<Tr>
                    <td width= "250"><font class= "color"> Nombre de la Guarder&iacute;a: </font>
					<input type= "text" name= "guar_nombre_ins" required="" size= "45" maxlength = "45">
					</td>
					<td width= "250"><font class= "color"> Rif: </font>
					<select name= "guar_tipo_rif"></font>
						<option value="J"> J </option>
						<option value="G"> G </option>
					</select>
					<input type= "text" name= "guar_rif" onKeyPress="return isNumberKey(event)" required="">
					</td>
				</tr>
				<tr>
					<td><font class= "color"> Tipo de Servicio: </font>
					<input type="radio" name="guar_tipo_servicio" value="Publico">P&uacute;blico
                    <input type="radio" name="guar_tipo_servicio" value="Privado">Privado
                    </td>
					<td><font class= "color"> N&uacute;meros Telefonos: </font>
					<input type= "text" name= "guar_telefono" required="">
					</td>
				</tr>
				<tr>
					<td><font class= "color"> Correo Electr&oacute;nico: </font>
					<input type= "text" name= "guar_correo" required="" size= "45" maxlength = "45">
					</td>
					<td colspan= "2"><font class= "color"> Servicios que presta: </font>
					<input type= "text" name= "guar_servicio" required="" size= "45" maxlength = "45">
					</td>
				</tr>
				<tr>
					<td><font class= "color"> Direcci&oacute;n: </font>
					<input type= "text" name= "guar_direccion" required="" size= "45" maxlength = "45">
					</td>
					<td><font class= "color"> Estatus: <select name= "guar_estatus"></font>
						<option value="ACTIVO"> ACTIVO </option>
						<option value="INACTIVO"> INACTIVO </option>
					</select></td>
				</tr>
			</table>
			
			<h2><p align="center"><font color= "#fffff" size = 5> Registro del Titular de la Guarder&iacute;a </font></p></h2>
				<table width= "600" align= "center">
					<Tr>
						<td width= "250"><font class= "color"> Nombre del Titular de la Cuenta: </font>
						<input type= "text" name= "guar_titular" size= "45" maxlength = "45">
						</td>
                   		<td width= "250"><font class= "color"> C&eacute;dula: </font>
                    <select name= "guar_nac_titular"></font>
						<option value="V"> V </option>
						<option value="E"> E </option>
					</select>
					<input type= "text" name= "guar_cedula_titular" onKeyPress="return isNumberKey(event)" required="" size= "15" maxlength = "15">
					</td>
					</tr>
				</table>
				
				<h1><p align="center"><font color= "fffff" size = 5> Registro de la Cuenta Bancaria: </font></p></h1>

<table width= "600" align= "center">
<tr>
	<td width= "250" align= "center"><font class= "color"> Nombre del Banco: </font></td>
	<td width= "250" align= "center"><font class= "color"> N&uacute;mero de Cuenta: </font></td>
</tr>
<?php
include 'conex.php';

	$consulta="SELECT id_banco, nombre_banco FROM banco";
	$resultado=pg_query($consulta);

?>					
<tr>
	<td align= "center"><select name="banco">							
<?php

while($linea = pg_fetch_array($resultado)) {
	?>
	
	<option value="<?php echo $linea ['id_banco']; ?>"> <?php echo $linea ['nombre_banco']; ?> </option>

<?php
}

?>
	</select></td>
	<td align= "center"><input type= "text" style="width:150px" maxlength = "20" name= "cuenta" onKeyPress="return isNumberKey(event)"></td>
</tr>
<tr>
					<td>
						&nbsp;
					</td>
				</tr>
				<tr>
					<td colspan="2" align="center">				
				<input type="submit" onClick= "Validar();" value = "Agregar">
					</td>
				</tr>
		</table>
		<p align="center">
						<br>
				<a href="consulta_user.php"><img src="1356055280_Forward-64.png" height="30px" width="30px" /></a>
				</br>
				</p> 
			</form>

		
        </td>
		</table>
          <p>&nbsp;</p>
        </div>
        <br class="clear" />
      </div>
      <br class="clear" />
    </div>
    <div id="content_bottom"><img src="media/content_.jpg" width="980" height="5" alt="bottom" /></div>
    <div id="footer">
     
    </div>
  </div>
</div>
<div id="grass">
  <div id="footer_design"> </div>
</div>
<script type="text/javascript"> Cufon.now(); </script>
</body>
</html>
<script language="JavaScript" type="text/javascript"
			xml:space="preserve">

			frmvalidator.addValidation("guar_rif","numeric","El Rif debe ser numerica.");
			frmvalidator.addValidation("guar_cedula_titular","numeric","La c&eacute;dula debe ser numerica.");
			frmvalidator.addValidation("cuenta","numeric","El N&uacute;mero de Cuenta debe ser numerica.");
</script>